var app = getApp();
var SERVER_URL=app.globalData.SERVER_URL;
Page({
    data: {
        content: '',
    },
    onLoad(){
        this.setData({
            info:app.globalData.data.costRemark
        });
    },
    onShow:function(){

    },
    cmdOk_click:function(e){
        var index = e.currentTarget.dataset.index;
        index =parseInt(index);
        if(index==1){
            wx.navigateTo({
                url: './desc'
            });
        }
    },
    form_submit:function(){
        app.globalData.data.costRemark=this.data.info;
        wx.navigateBack({
            delta: 1
        });
    },
    info_change:function(e){
        var value = e.detail.value;
        this.setData({
            info:value
        });
    }
});